package com.chengzzz.mysite.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chengzzz.mysite.entity.Animation;
import javafx.scene.control.Pagination;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * (Animation)表数据库访问层
 *
 * @author 等什么柠檬君
 * @since 2020-08-24 14:26:48
 */

@Repository
public interface AnimationDao extends BaseMapper<Animation> {

    //多表联合查询 按条件orderID

   // List<Map<String,Object>> orderUserList(Page<Map<String,Object>> page, String id);
   @Select("select * from animation LEFT JOIN  source  ON animation.aid = source.aid ")
    List<Map<String,String>> selectMulti();

    @Select("select * from animation LEFT JOIN  source  ON animation.aid = source.aid ")
    List<Animation> getQuestionStudent(Page page);
}